﻿using ET.DBCommon.Enum;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ET.DBCommon.Model
{
    /// <summary>
    /// 步骤与操作关联
    /// </summary>
    public class ExamResultsLogModel
    {
        public int ID { get; set; }
        public int OperationLogID { get; set; }        
        public int ExamresultID { get; set; }
        public int ExamQuestionID { get; set; }
        public int ExamTaskID { get; set; }
        public int ExamSetpID { get; set; }
        /// <summary>
        /// 0/无
        /// 1/无效
        /// 2/正确
        /// 3/错误
        /// 4/正确跳过
        /// 5/错误跳过
        /// 6/放弃
        /// </summary>
        public int LogType { get; set; }
        public string LogTypeName
        {
            get
            {
                return ((LogTypeEnum)LogType).ToString();
            }
        }

        public string OperDescribe { get; set; }
        public string DeviceTypeName { get; set; }
        public string Parameters { get; set; }
        public string DeviceName { get; set; }
        //private string m_DeviceName;
        //public string DeviceName
        //{
        //    get
        //    {
        //        var devices = this.m_DeviceName.Split(',');
        //        var devName = "";
        //        foreach (var dev in devices)
        //        {
        //            if (int.TryParse(dev, out int devID))
        //                devName += ((Station)devID).ToString() + ',';
        //        }
        //        return devName.TrimEnd(',');
        //    }
        //    set
        //    {
        //        this.m_DeviceName = value;
        //    }
        //}
        public string StepDescribe { get; set; }
    }
}
